3.341 \(\int \sqrt {a+a \sin (e+f x)} (c-c \sin (e+f x))^{5/2} \, dx\)

Optimal. Leaf size=43 \[ -\frac {a \cos (e+f x) (c-c \sin (e+f x))^{5/2}}{3 f \sqrt {a \sin (e+f x)+a}} \]

[Out]

-1/3*a*cos(f*x+e)*(c-c*sin(f*x+e))^(5/2)/f/(a+a*sin(f*x+e))^(1/2)

________________________________________________________________________________________

Rubi [A]  time = 0.08, antiderivative size = 43, normalized size of antiderivative = 1.00, number of steps used = 1, number of rules used = 1, integrand size = 30, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.033, Rules used = {2738} \[ -\frac {a \cos (e+f x) (c-c \sin (e+f x))^{5/2}}{3 f \sqrt {a \sin (e+f x)+a}} \]

Antiderivative was successfully verified.

[In]

Int[Sqrt[a + a*Sin[e + f*x]]*(c - c*Sin[e + f*x])^(5/2),x]

[Out]

-(a*Cos[e + f*x]*(c - c*Sin[e + f*x])^(5/2))/(3*f*Sqrt[a + a*Sin[e + f*x]])

Rule 2738

Int[Sqrt[(a_) + (b_.)*sin[(e_.) + (f_.)*(x_)]]*((c_) + (d_.)*sin[(e_.) + (f_.)*(x_)])^(n_), x_Symbol] :> Simp[
(-2*b*Cos[e + f*x]*(c + d*Sin[e + f*x])^n)/(f*(2*n + 1)*Sqrt[a + b*Sin[e + f*x]]), x] /; FreeQ[{a, b, c, d, e,
 f, n}, x] && EqQ[b*c + a*d, 0] && EqQ[a^2 - b^2, 0] && NeQ[n, -2^(-1)]

Rubi steps

\begin {align*} \int \sqrt {a+a \sin (e+f x)} (c-c \sin (e+f x))^{5/2} \, dx &=-\frac {a \cos (e+f x) (c-c \sin (e+f x))^{5/2}}{3 f \sqrt {a+a \sin (e+f x)}}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.30, size = 74, normalized size = 1.72 \[ \frac {c^2 \sec (e+f x) \sqrt {a (\sin (e+f x)+1)} \sqrt {c-c \sin (e+f x)} (15 \sin (e+f x)-\sin (3 (e+f x))+6 \cos (2 (e+f x)))}{12 f} \]

Antiderivative was successfully verified.

[In]

Integrate[Sqrt[a + a*Sin[e + f*x]]*(c - c*Sin[e + f*x])^(5/2),x]

[Out]

(c^2*Sec[e + f*x]*Sqrt[a*(1 + Sin[e + f*x])]*Sqrt[c - c*Sin[e + f*x]]*(6*Cos[2*(e + f*x)] + 15*Sin[e + f*x] -
Sin[3*(e + f*x)]))/(12*f)

________________________________________________________________________________________

fricas [B]  time = 0.44, size = 83, normalized size = 1.93 \[ \frac {{\left (3 \, c^{2} \cos \left (f x + e\right )^{2} - 3 \, c^{2} - {\left (c^{2} \cos \left (f x + e\right )^{2} - 4 \, c^{2}\right )} \sin \left (f x + e\right )\right )} \sqrt {a \sin \left (f x + e\right ) + a} \sqrt {-c \sin \left (f x + e\right ) + c}}{3 \, f \cos \left (f x + e\right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+a*sin(f*x+e))^(1/2)*(c-c*sin(f*x+e))^(5/2),x, algorithm="fricas")

[Out]

1/3*(3*c^2*cos(f*x + e)^2 - 3*c^2 - (c^2*cos(f*x + e)^2 - 4*c^2)*sin(f*x + e))*sqrt(a*sin(f*x + e) + a)*sqrt(-
c*sin(f*x + e) + c)/(f*cos(f*x + e))

________________________________________________________________________________________

giac [F(-2)]  time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: NotImplementedError} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+a*sin(f*x+e))^(1/2)*(c-c*sin(f*x+e))^(5/2),x, algorithm="giac")

[Out]

Exception raised: NotImplementedError >> Unable to parse Giac output: Unable to check sign: (4*pi/x/2)>(-4*pi/
x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check si
gn: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/
x/2)sqrt(2*a)*sqrt(2*c)*(-40*c^2*f*sign(sin(1/2*(f*x+exp(1))-1/4*pi))*sign(cos(1/2*(f*x+exp(1))-1/4*pi))*sin(f
*x+exp(1))/(8*f)^2+24*c^2*f*sign(sin(1/2*(f*x+exp(1))-1/4*pi))*sign(cos(1/2*(f*x+exp(1))-1/4*pi))*sin(3*f*x+3*
exp(1))/(24*f)^2-4*c^2*f*sign(sin(1/2*(f*x+exp(1))-1/4*pi))*sign(cos(1/2*(f*x+exp(1))-1/4*pi))*cos(2*f*x+2*exp
(1))/(4*f)^2)

________________________________________________________________________________________

maple [B]  time = 0.34, size = 78, normalized size = 1.81 \[ \frac {\left (-c \left (\sin \left (f x +e \right )-1\right )\right )^{\frac {5}{2}} \sqrt {a \left (1+\sin \left (f x +e \right )\right )}\, \sin \left (f x +e \right ) \left (\cos ^{4}\left (f x +e \right )+\left (\cos ^{2}\left (f x +e \right )\right ) \sin \left (f x +e \right )+2 \sin \left (f x +e \right )+2\right )}{3 f \cos \left (f x +e \right )^{5}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a+a*sin(f*x+e))^(1/2)*(c-c*sin(f*x+e))^(5/2),x)

[Out]

1/3/f*(-c*(sin(f*x+e)-1))^(5/2)*(a*(1+sin(f*x+e)))^(1/2)*sin(f*x+e)*(cos(f*x+e)^4+cos(f*x+e)^2*sin(f*x+e)+2*si
n(f*x+e)+2)/cos(f*x+e)^5

________________________________________________________________________________________

maxima [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \sqrt {a \sin \left (f x + e\right ) + a} {\left (-c \sin \left (f x + e\right ) + c\right )}^{\frac {5}{2}}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+a*sin(f*x+e))^(1/2)*(c-c*sin(f*x+e))^(5/2),x, algorithm="maxima")

[Out]

integrate(sqrt(a*sin(f*x + e) + a)*(-c*sin(f*x + e) + c)^(5/2), x)

________________________________________________________________________________________

mupad [B]  time = 7.71, size = 88, normalized size = 2.05 \[ \frac {c^2\,\sqrt {a\,\left (\sin \left (e+f\,x\right )+1\right )}\,\sqrt {-c\,\left (\sin \left (e+f\,x\right )-1\right )}\,\left (6\,\cos \left (e+f\,x\right )+6\,\cos \left (3\,e+3\,f\,x\right )+14\,\sin \left (2\,e+2\,f\,x\right )-\sin \left (4\,e+4\,f\,x\right )\right )}{12\,f\,\left (\cos \left (2\,e+2\,f\,x\right )+1\right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a + a*sin(e + f*x))^(1/2)*(c - c*sin(e + f*x))^(5/2),x)

[Out]

(c^2*(a*(sin(e + f*x) + 1))^(1/2)*(-c*(sin(e + f*x) - 1))^(1/2)*(6*cos(e + f*x) + 6*cos(3*e + 3*f*x) + 14*sin(
2*e + 2*f*x) - sin(4*e + 4*f*x)))/(12*f*(cos(2*e + 2*f*x) + 1))

________________________________________________________________________________________

sympy [F(-1)]  time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+a*sin(f*x+e))**(1/2)*(c-c*sin(f*x+e))**(5/2),x)

[Out]

Timed out

________________________________________________________________________________________